//
// Created by guanyicheng on 2021/11/8.
//
#include <iostream>
#include <string>

using namespace std;

int main() {
    string input;
    cin >> input;
    int n = input.size();
    for(int i = n - 1; i > -1; --i) {
        cout << input.at(i);
    }
    cout << endl;
    return 0;
}